import * as fs from 'fs';
import MyTransform from './mpeg2';

const tsFilePath: string = "/home/gj027/Documents/资源/mp4/oceans.mp4";

let tsStream = fs.createReadStream(tsFilePath, { encoding: undefined });
let myTransform = new MyTransform();
myTransform.on('data', (data: any) => {
    console.log(data);
});

tsStream.pipe(myTransform)

console.log("Hello World!");
setTimeout(function () { }, 10000000);